public class Atom {
        private String name;
        private Predicate P;
        private ListOfObjects LO;
        
        public Atom (){
        	name = "";
                P = null;
                LO = null;
        }
        public Atom (String name){ // I added this constructor because sometimes I need to add Atom with name.
        	this.name = name;
                P = new Predicate(name) ;
                LO = new ListOfObjects(10);
        }
        
  public void display(){
    System.out.println("The name of Atom is : <<"+ getName()+">>");
          P.display2();
          LO.display(); 
  }
   
   
        public String getName() {
                return name;
        }


        public Predicate getP() {
                return P;
        }


        public ListOfObjects getLO() {
                return LO;
        }

        public void setName(String name) {
                this.name = name;
        }


        public void setP(Predicate p) {
                P = p;
        }


        public void setLO(ListOfObjects lo) {
                LO = lo;
        }
        
        
        
        
        
}
